package com.xd.pre.modules.tpshop.service;

import com.xd.pre.modules.tpshop.domain.TpCart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lx
 * @since 2020-06-03
 */
public interface ITpCartService extends IService<TpCart> {

    TpCart findCart_by_ugm(int userId, int goodsId, Integer specId);

    TpCart find_cart_byCartId(Integer cartId);

    int update_cart_number(int number, Integer cartId);

    List<TpCart> findAll_cart();

    int update_cart_by_postJsonArray(int goods_num, int select, int cartId);

    int deleteCart_afterSubmitOrder(int user_id);

    List<TpCart> findCartList_withChecked();

    int findCount_selectCartPO(int userId);
}
